package ooexercise01;


public class Dog extends Animal {
    /*
    Dog(String name, int age, String colour){
        super(name,age,colour);

    }

    void lookHome(){
        System.out.println(age+"岁的"+colour+"小狗"+name+"在看家……");
    }

    void eat(){
        System.out.println(age+"岁的"+colour+"小狗"+name+"在啃骨头……");
    };

     */

    Dog(String name, int age, String colour){
        super(name,age,colour);

    }

    void lookHome(){
        System.out.println(age+"岁的"+colour+"小狗"+name+"在看家……");
    }

    void eat(){
        System.out.println(age+"岁的"+colour+"小狗"+name+"在啃骨头……");
    };
}
